package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("trade-service")//一个指向item-service的远程调用
public interface TradeClient {

    @PutMapping("orders/{orderId}")
    public void markOrderPaySuccess(@PathVariable("orderId") Long orderId);

}